home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / funasp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  673 b   |  31 lines

  1. /*
  2. \funcref{fun\_asp} {void fun\_asp ()}
  3.     {}
  4.     {}
  5.     {getopcode(), pop(), discard()}
  6.     {}
  7.     {funasp.c}
  8.     {
  9.         This function is executed when an {\em op\_asp} opcode
  10.         is read from the binary makefile. Following the opcode, an {\em
  11.         UNS8} argument is expected which specifies the number of stack
  12.         positions to discard.
  13.  
  14.         Function {\em fun\_asp()} repetitively calls {\em pop()} and {\em
  15.         discard()} to throw away the stack variables.
  16.     }
  17. */
  18.  
  19. #include "icm-exec.h"
  20.  
  21. void fun_asp ()
  22. {
  23.     register char
  24.         i,
  25.         val;
  26.  
  27.     val = (char) getopcode (infile);
  28.     for (i = 0; i < val; i++)
  29.         discard (pop ());
  30. }
  31.